package com.kelvem.saas.workbanch.ontology.carrier.feiyang.response;

import com.kelvem.saas.workbanch.ontology.carrier.feiyang.model.FeiyangTrackEntity;
import com.kelvem.saas.workbanch.ontology.carrier.feiyang.request.FeiyangReturnReq;
import com.kelvem.saas.workbanch.ontology.carrier.feiyang.request.FeiyangTrackReq;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @author kelvem
 */
@Data()
@ToString(callSuper = true)
public class FeiyangNotifyResp {

//    {param={"GoodsSelfNumber":"7914-1","InHouseIdentifier":"2017",
// "OriginalDocumentNumber":"1605687914",
// "TransportStatusCode":"5","PlaceOrLocationIdentification":"哈尔滨","NameOfPerson":"hrbb",
// "MessageFunctionCode":"02",
// "ShippingNoteNumber":"2011181698","StatusChangeDateTime":"20201118163258",
// "Remark":"哈尔滨已揽件，发往张国的1件ZP:一口膏*1准备发往下一站。网点电话:045187523123"}}
//
//    {"message":"操作成功","receiveCode":"","receiveOrderNo":"HCC223377","sendCode":"1890",
// "sendOrderNo":"1002541230","success":true}

//    {"code":"001","orderNo":"2011191699","success":true,"OriginalDocumentNumber":"1605755769",
//      "documentQueueNo":"1605755769","message":"成功","messageGuid":"1605755769"}
    
    
    public FeiyangNotifyResp(FeiyangTrackReq req) {
        this.receiveOrderNo = req.getShippingNoteNumber();
        this.sendOrderNo = req.getOriginalDocumentNumber();
    }
    public FeiyangNotifyResp(FeiyangReturnReq req) {
        this.receiveOrderNo = req.getOrderNo();
        this.sendOrderNo = req.getOriginalDocumentNumber();
    }
    
    private Boolean success = true;
    private String message = "操作成功";
//    private String receiveCode = "101";
    private String receiveOrderNo;
//    private String sendCode = "ly001";
    private String sendOrderNo;
}

